package org.keyyond.ms.business.service;

import org.keyyond.ms.business.service.impl.MsSmsMessageLogServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author YCR
 * @belong to Shccs
 * @date:2018年1月23日
 * @date:2018年1月23日
 * @version : V1.0
 */
@FeignClient(name="keyyond-ms-business", fallback=MsSmsMessageLogServiceFallback.class)
public interface MsSmsMessageLogService {

	/**
	 * 短信日志记录功能
	 * 
	 * @author songjianping
	 * @since 2018-1-23
	 * @category </br>短信日志记录功能</br>
	 *           
	 * @param param
	 *            | string | 必填  SmsMessageLog转换为json对象
	 * @return <b>json字符串</br>
	 * @exception 
	 */
	@RequestMapping(value="/sms/addLog", method = RequestMethod.POST)
	String addMessageLog(@RequestParam("param") String param);
	
	/**
	 *  验证码校验
	 * 
	 * @author YCR
	 * @since 2018-1-23
	 * @category </br>验证码校验</br>
	 *           
	 * @param param
	 *            | string | 必填  手机号和验证码类型的json字符串
	 * @return <b>String</br>
	 * @exception 
	 */
	@RequestMapping(value="/sms/validateSmsInfo", method = RequestMethod.POST)
	String validateSmsInfo(@RequestParam("param") String param);
}
